package com.example.hospitaldemo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 护士用户表
 *
 *  注意：如果表是没有关联的，实体类是不需要单独处理的
 *          如果存在关联，需要定义所需的字段
 * </p>
 *
 * @author 张三
 * @since 2024-12-16
 */
@Getter
@Setter
@Schema(description= "护士信息")
public class Nurse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
//    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID", required = true, example = "1")
    private Integer id;

    public Nurse(String username, String password) {
        this.username = username;
        this.password = password;
    }

    /**
     * 账号
     */
    @Schema(description = "账号", required = false)
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码", required = false)
    private String password;

    /**
     * 姓名
     */
    @Schema(description = "真实姓名", required = false)
    private String name;

    /**
     * 所属角色
     */
    @Schema(description = "角色", required = false)
    private Integer role;
}
